package pers.books.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pers.books.dao.PressDao;
import pers.books.entity.Press;
import pers.books.service.PressService;
import pers.books.util.ResultMessage;

/**
 * 
 * PressServiceImpl
 *
 * @author 姜治昊
 * @time 2018年5月5日 下午11:28:57
 */
@Service
public class PressServiceImpl implements PressService {

	@Autowired
	private PressDao pressDao;
	
	@Override
	public ResultMessage<?> getAllPresses(String nameLike, int page, int rows) {
		// TODO Auto-generated method stub
		List<Press> presses = pressDao.getAllPresses(nameLike, page, rows);
		return ResultMessage.createSuccessResultMessage(presses);
	}

}
